package com.erp.stock.dao;

import com.erp.stock.entity.RawMaterialInventory;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface RawMaterialInventoryDao extends JpaRepository<RawMaterialInventory,Long> {
    RawMaterialInventory findFirstByRawMaterialId(Long id);

    List<RawMaterialInventory> findAllByRawMaterialIdLike(String id, Pageable pageable);

    List<RawMaterialInventory> findAllByRawMaterialId(Long rmId);
}
